<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="gr" uri="/grsun"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta charset="utf-8" />
<meta name="description" content="Mailbox with some customizations as described in docs" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<%@ include file="/include/main_include.jsp"%>
<%@ include file="/include/form_include.jsp"%>
<style type="text/css">
#tt .tabs-wrap .tabs {
	width: 100%;
}
</style>
</head>
<body class="easyui-layout">
	<!-- 左部分 -->
	<div data-options="region:'west',title:'商家列表',split:true" style="width: 17%;">
		<div data-options="region:'north',border:false" style="height: 40px;">
				<div class="input-group">
							<input id="businessName" name="businessName"  type="text" class="form-control search-query"  placeholder="这里输入要查询商家名称">
							<span class="input-group-btn">
								<button type="button" class="btn btn-success btn-sm"  onclick="searchname()">
									<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
									搜索
								</button>
							</span>
					</div>
		</div>
		<div data-options="region:'center',border:false" style="height: 94.7%;">
			<table id="business_table"></table>
		</div>
	</div>
	<!-- 右部分 -->
	<div data-options="region:'center'" style="width: 83%;">
		<div id="tt" class="easyui-tabs" style="width: 100%; height: 100%;">
			<!-- 商家用户 -->
			<div title="商家用户" style="width: 100%; height: 92%; display: none;">
				<div id="aa" class="easyui-layout" style="width: 100%; height: 100%;">
					<div data-options="region:'north',border:false" style="height: 42px;">
						<div class="grsun-toolbar">
								<button type="button" id="adduser" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-plus blue bigger"></i>
									增加
								</button>
								<button type="button" id="edituser" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									修改
								</button>
								<button type="button" id="deluser" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-remove red bigger"></i>
									删除
								</button>
								<button type="button" id="searchuser" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-search green bigger"></i>
									查询
								</button>
						</div>
					</div>
					<div data-options="region:'center',border:false">
						<table id="user_table"></table>
					</div>
					<script type="text/javascript" src="${path}/static/myjs/information/business/index_list.js?v=${css_version}"></script>
				</div>
			</div>
			<!-- 桌牌 -->
			<div title="桌牌" style="width: 100%; height: 92%; display: none;">
				<div id="aa" class="easyui-layout" style="width: 100%; height: 100%;">
					<div data-options="region:'north',border:false" style="height: 42px;">
						<div class="grsun-toolbar">
								<button type="button" id="adddining" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-plus blue bigger"></i>
									增加
								</button>
								<button type="button" id="editdining" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									修改
								</button>
								<button type="button" id="deldining" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-remove red bigger"></i>
									删除
								</button>
								<button type="button" id="searchdining" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-search green bigger"></i>
									查询
								</button>
								<button type="button" id="zipdining" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-cogs green bigger"></i>
									桌牌打包下载
									</button>
								<!-- <button type="button" id="diningStyle" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-cogs green bigger"></i>
									设置桌牌样式
								</button> -->
						</div>
					</div>
					<div data-options="region:'center',border:false" style="height: 420px;">
						<table id="dining_table"></table>
					</div>
					<script type="text/javascript" src="${path}/static/myjs/information/business/dining.js?v=${css_version}"></script>
				</div>
			</div>
			<!-- 菜品 -->
			<div title="商品" style="width: 100%; height: 92%; display: none;">
				<div id="aa" class="easyui-layout" style="width: 100%; height: 100%;">
					 <!-- 上部分 --> 
					<div data-options="region:'west',title:'商品分类',split:true" style="width:40%;height:100%;"  >
					  	<div data-options="region:'north',border:false" style="height:40px;">
					   	<div class="grsun-toolbar">
								<button type="button" id="addmenu" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-plus blue bigger"></i>
									增加
								</button>
								<button type="button" id="editmenu" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									修改
								</button>
								<button type="button" id="delmenu" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-remove red bigger"></i>
									删除
								</button>
								<button type="button" id="searchmenu" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-search green bigger"></i>
									查询
								</button>
								<button type="button" id="fromMenuExcel" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-cogs green bigger"></i>
										导入
								</button>
								<button type="button" id="outMeauExcel" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-cogs green bigger"></i>
										下载导入EXCLE模板
								</button>
						</div>
					  	</div>
					<div data-options="region:'center',border:false" style="height:94.7%;">
						<table id="shopmenu_table"></table>
					</div> 
					</div>
					<!-- 下部分 --> 
					<div data-options="region:'center',title:'商品列表',split:true" style="width:60%;">
					<div data-options="region:'north',border:false" style="height:40px;">
					   	<div class="grsun-toolbar">
								<button type="button" id="addfood" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-plus blue bigger"></i>
									增加
								</button>
								<button type="button" id="editfood" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									修改
								</button>
								<button type="button" id="delfood" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-remove red bigger"></i>
									删除
								</button>
								<button type="button" id="searchfood" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-search green bigger"></i>
									查询
								</button>
								<button type="button" id="fromFoodExcel" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-cogs green bigger"></i>
										导入
								</button>
								<button type="button" id="outFoodExcel" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-cogs green bigger"></i>
										下载导入EXCLE模板
								</button>
								<button type="button" id="foodTags" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									添加多个菜品规格
								</button>
						</div>
					  	</div>
					<div data-options="region:'center',border:false" style="height:94.7%;">
						<table id="food_table"></table>
					</div> 
					</div>  
				</div>
			</div>
			<c:if test="${role.roleCode.equals('admin') }">
			<!-- 商家代理费设置 -->
			<div title="商家代理费配置 " style="width: 100%; height: 92%; display: none;">
				<div id="aa" class="easyui-layout" style="width: 100%; height: 100%;">
					<div data-options="region:'north',border:false" style="height: 42px;">
						<div class="grsun-toolbar">
								<button type="button" id="add" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-plus blue bigger"></i>
									增加
								</button>
								<button type="button" id="edit" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									修改
								</button>
								<button type="button" id="del" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-remove red bigger"></i>
									删除
								</button>
						</div>
					</div>
					<div data-options="region:'center',border:false">
						<table id="serviceConfig_table"></table>
					</div>
					<script type="text/javascript" src="${path}/static/myjs/information/business/serviceConfig.js?v=${css_version}">
					</script>
				</div>
			</div>  
			</c:if>
			  <!-- 支付配置 -->
			<%-- <div title="支付配置 " style="width: 100%; height: 92%; display: none;">
				<div id="aa" class="easyui-layout" style="width: 100%; height: 100%;">
					<div data-options="region:'north',border:false" style="height: 42px;">
						<div class="grsun-toolbar">
								<button type="button" id="addhhPayConfig" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-plus blue bigger"></i>
									增加
								</button>
								<button type="button" id="edithhPayConfig" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-edit orange bigger"></i>
									修改
								</button>
								<button type="button" id="delhhPayConfig" class="btn btn btn-toolbar btn-white btn-info no-border auth-hidden">
									<i class="ace-icon fa fa-remove red bigger"></i>
									删除
								</button>
						</div>
					</div>
					<div data-options="region:'center',border:false">
						<table id="pay_table"></table>
					</div>
					<script type="text/javascript" src="${path}/static/myjs/information/business/payConfig.js?v=${css_version}"></script>
				</div>
			</div>   --%>
		</div>
	</div>
</body>
<script type="text/javascript" src="${path}/static/myjs/information/business/food.js?v=${css_version}"></script>
</html>
